import { createRouter, createWebHistory } from "vue-router"

const routes = [
    {
        //设置登陆页面的路由，默认项目打开为首页
        path: "/",
        component: () => import("@/views/login.vue")
    },
    {
        //设置注册页面的路由
        path: "/register",
        component: () => import("@/views/register.vue")
    },
    {
        path: "/main",
        component: () => import("@/views/main.vue")
    },
    {
        path: "/records",
        component: () => import("@/views/records.vue")
    },

]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router